package com.quyunshuo.module.home.view

import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import com.quyunshuo.androidbaseframemvvm.common.ext.px

class MyCircleViewAnimate(context: Context?, attrs: AttributeSet?) :
    View(context, attrs) {
    var radius = 50f.px
        get() =field
        set(value){
            field = value
            invalidate()
        }

    private val paint = Paint(Paint.ANTI_ALIAS_FLAG)
    override fun onDraw(canvas: Canvas) {
        canvas.drawCircle(width / 2f, height / 2f, radius, paint)

    }
}